package com.example.exception.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/exception/")
public class ExceptionController {

    @GetMapping(value = "test")
    public void test() throws Exception {
        throw new Exception("异常测试");
    }
}
